#!/usr/bin/python
# -*- coding: UTF-8 -*-
import os

parentPath = os.getcwd()

with open(parentPath+'/commit.txt','w') as f:
    for pathStr in os.listdir(parentPath):
            if(pathStr.find('ccb')!=-1):
                print("写入目录名："+pathStr)
                f.write(pathStr+"\n")